package com.company.action;

import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Properties;

import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.NoResultException;
import javax.persistence.Query;

import model.Libro;
import model.ListaUtile;
import model.Opcione;
import model.Padre;
import model.Persona;
import model.Tutor;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.interceptor.SessionAware;
import org.omg.CORBA.PRIVATE_MEMBER;

import com.company.common.util.Utilitario;

@Action(value="load-correo",
results={
	@Result(name="exito", location="/correo/enviar-correo.jsp"),
	@Result(name="error", location="/inicio.jsp")
} )
public class LoadCorreoAction implements SessionAware{

	private Map<String, Object> session;
	
	public Map<String, Object> getSession() {
	     return session;
	}
	public void setSession(Map<String, Object> session) {
	     this.session = session;
	}

	public String execute() throws IOException{
		String result="exito";
		
		return result;
	}

}

